import request from "../axios/requestMethod.ts";
import type {AxiosResponse} from "axios";


export const useGetPieDataApi = (): Promise<AxiosResponse<any, any>> =>
    request({
        method: "POST",
        url: "/pie"
    })


export const useGetBarDataApi = (): Promise<AxiosResponse<any, any>> =>
    request({
        method: "POST",
        url: "/bar"
    })


export const useGetTreeDataApi = (): Promise<AxiosResponse<any, any>> =>
    request({
        method: "POST",
        url: "/tree"
    })

export const useGetFunnelDataApi = (): Promise<AxiosResponse<any, any>> =>
    request({
        method: "POST",
        url: "/funnel"
    })


export const useGetLineDataApi = (): Promise<AxiosResponse<any, any>> =>
    request({
        method: "POST",
        url: "/line"
    })